import { VText, VImage } from "voyage-component";
import { defaultTextTemplate, defaultTextComponentProps, textStylePropsNames } from "common/data/defaultText";
import { defaultImageTemplate, defaultImageComponentProps, imageStylePropsNames } from "common/data/defaultImage";

export const componentTabList = {
    defaultKey: "VText",
    tabList: [
        {
            key: "VText",
            title: (<span>文本组件</span>),
            component: VText,
            defaultTemplate: defaultTextTemplate,
            defaultValues: defaultTextComponentProps,
            styleKeyNames: textStylePropsNames
        },
        {
            key: "VImage",
            title: (<span>图片组件</span>),
            component: VImage,
            defaultTemplate: defaultImageTemplate,
            defaultValues: defaultImageComponentProps,
            styleKeyNames: imageStylePropsNames
        }
    ]
}

export const keyPrompt = [
    {
        name: "删除图层",
        key: "Backspace / Delete"
    },
    {
        name: "取消选中",
        key: "ESC"
    },
    {
        name: "撤销",
        key: "⌘Z / Ctrl+Z"
    },
    {
        name: "重做",
        key: "⌘⇧Z / Ctrl+Shift+Z"
    }
]